package cn.cdutetc.foxwatch.serveice;

import cn.cdutetc.foxwatch.exception.MyException;
import cn.cdutetc.foxwatch.pojo.PagePojo;
import cn.cdutetc.foxwatch.pojo.UserInfo;
import cn.cdutetc.foxwatch.pojo.tripartite.PhonePojo;
import com.baomidou.mybatisplus.extension.service.IService;

public interface UserInfoService extends IService<UserInfo> {
    PagePojo<UserInfo> queryUserInfoPage(UserInfo userInfo);

    Boolean register(UserInfo user) throws MyException;

    String login(UserInfo user) throws MyException;

    String emailLogin(UserInfo user, String code) throws MyException;

    String phoneLogin(PhonePojo phone) throws MyException;

    String weixinLogin(UserInfo user, String code) throws MyException;
}
